package net.ifilm.entity;

import java.util.Date;

/**
 * 幻灯片电影表<t>slidefilm</t>映射Bean类。
 *
 * User: <a href="wangjunneil@gmail.com">wangjun</a>
 * Date: 2012-08-05 23:01
 */
public class SlideFilm {

    /**
     * 外键电影ID
     */
    private int filmId;

    /**
     * 电影名称
     */
    private String filmName;

    /**
     * 幻灯图片路径
     */
    private String picturePath;

    /**
     * 缩略图路径
     */
    private String minPicPath;

    /**
     * 启用标志，0启用，1禁用
     */
    private int activeFlag;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 电影
     */
    private Film film;

    // --------------------------------------------- setter/getter

    public int getFilmId() {
        return filmId;
    }

    public void setFilmId(int filmId) {
        this.filmId = filmId;
    }

    public String getFilmName() {
        return filmName;
    }

    public void setFilmName(String filmName) {
        this.filmName = filmName;
    }

    public String getPicturePath() {
        return picturePath;
    }

    public void setPicturePath(String picturePath) {
        this.picturePath = picturePath;
    }

    public String getMinPicPath() {
        return minPicPath;
    }

    public void setMinPicPath(String minPicPath) {
        this.minPicPath = minPicPath;
    }

    public int getActiveFlag() {
        return activeFlag;
    }

    public void setActiveFlag(int activeFlag) {
        this.activeFlag = activeFlag;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Film getFilm() {
        return film;
    }

    public void setFilm(Film film) {
        this.film = film;
    }

    @Override
    public String toString() {
        StringBuffer sb = new StringBuffer();
        sb.append("SlideFilm: [")
                .append("id=").append(filmId).append(',')
                .append("filmName=").append(film.getFilmName()).append(']');
        return sb.toString();
    }
} ///:~
